package org.dromara.bus.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.bus.domain.YxdStash;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 熠星达仓库视图对象 yxd_stash
 *
 * @author csy
 * @date 2024-03-19
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = YxdStash.class)
public class YxdStashVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 仓库主键
     */
    @ExcelProperty(value = "仓库主键")
    private Long stashId;

    /**
     * 二维码地址
     */
    @ExcelProperty(value = "二维码地址")
    private String qrCode;

    /**
     * 仓库名称
     */
    @ExcelProperty(value = "仓库名称")
    private String name;

    /**
     * 仓库位置（地图获取）
     */
    @ExcelProperty(value = "仓库位置", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "地=图获取")
    private String position;

    /**
     * 仓库地址（手动输入）
     */
    @ExcelProperty(value = "仓库地址", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "手=动输入")
    private String addr;

    /**
     * 经度
     */
    @ExcelProperty(value = "经度")
    private Long longitude;

    /**
     * 纬度
     */
    @ExcelProperty(value = "纬度")
    private Long latitude;

    /**
     * 联系人
     */
    @ExcelProperty(value = "联系人")
    private String contact;

    /**
     * 联系人电话
     */
    @ExcelProperty(value = "联系人电话")
    private String telephone;

    /**
     * 开门时间
     */
    @ExcelProperty(value = "开门时间")
    private Date openTime;

    /**
     * 关门时间
     */
    @ExcelProperty(value = "关门时间")
    private Date closeTime;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 所属部门id
     */
    @ExcelProperty(value = "所属部门id")
    private Long deptId;

    /**
     * 所属部门名称
     */
    @ExcelProperty(value = "所属部门名称")
    private String deptCode;


}
